package cn.ctbu.edu.labtest.service;

import cn.ctbu.edu.labtest.dao.StudentRepository;
import cn.ctbu.edu.labtest.domain.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StudentService {


     List<student> findAll();

     Page<student> findAll(Pageable pageable);
    /*读取所有数据*/
    /*插入*/
    public Page<student> findAll(Example<student> student, Pageable pageable);
     student insert(student student);
    /*跟新*/
     student update(student student);

    /*删除*/
     void delete(student student);
     void delete(Long id);

     student getById(Long id);

}
